package marmalius;
/*
	Effectue la gestion potions
	modifie par Metos [EOAH]
*/

public class Potions {
	
	public boolean CheckForSkillUse3(int Item, int Slot, client c) {
		c.frame174(334, 050, 000);
		switch (Item) {
		case 143: // pray pot (1)
			c.playerLevel[5] += 19;
			if (c.playerLevel[5] > c.getLevelForXP(c.playerXP[5])) {
				c.playerLevel[5] = c.getLevelForXP(c.playerXP[5]);
			}
			c.sendFrame126("" + c.playerLevel[5] + "", 4012);
			c.ReplaceItems(229, 143, 1, 1);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 141: // pray pot (2)
			c.playerLevel[5] += 19;
			if (c.playerLevel[5] > c.getLevelForXP(c.playerXP[5])) {
				c.playerLevel[5] = c.getLevelForXP(c.playerXP[5]);
			}
			c.sendFrame126("" + c.playerLevel[5] + "", 4012);
			c.ReplaceItems(143, 141, 1, 1);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 139: // pray pot (3)
			c.playerLevel[5] += 19;
			if (c.playerLevel[5] > c.getLevelForXP(c.playerXP[5])) {
				c.playerLevel[5] = c.getLevelForXP(c.playerXP[5]);
			}
			c.sendFrame126("" + c.playerLevel[5] + "", 4012);
			c.ReplaceItems(141, 139, 1, 1);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 2434: // pray pot (4)
			c.playerLevel[5] += 19;
			if (c.playerLevel[5] > c.getLevelForXP(c.playerXP[5])) {
				c.playerLevel[5] = c.getLevelForXP(c.playerXP[5]);
			}
			c.sendFrame126("" + c.playerLevel[5] + "", 4012);
			c.ReplaceItems(139, 2434, 1, 1);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 2430: // restore pot
			c.restorePot();
			c.sendMessage("You drink a dose of the restore potion");
			c.ReplaceItems(127, 2430, 1, 1);
			c.startAnimation(0x33D);
			break;
		case 3030: // super restore pot
			c.restorePot();
			c.sendMessage("You drink the last dose of the super restore potion");
			c.ReplaceItems(229, 3030, 1, 1);
			c.startAnimation(0x33D);
			c.superRestore = true;
			break;
		case 3028: // super restore pot
			c.restorePot();
			c.sendMessage("You drink a dose of the super restore potion");
			c.ReplaceItems(3030, 3028, 1, 1);
			c.startAnimation(0x33D);
			c.superRestore = true;
			break;
		case 3026: // super restore pot
			c.restorePot();
			c.sendMessage("You drink a dose of the super restore potion");
			c.ReplaceItems(3028, 3026, 1, 1);
			c.startAnimation(0x33D);
			c.superRestore = true;
			break;
		case 3024: // super restore pot
			c.restorePot();
			c.sendMessage("You drink a dose of the super restore potion");
			c.ReplaceItems(3026, 3024, 1, 1);
			c.startAnimation(0x33D);
			c.superRestore = true;
			break;
		case 155: // fish pot (1)
			c.fishPot = true;
			c.fishPotTimer = 120;
			c.playerLevel[10] = c.getLevelForXP(c.playerXP[10]);
			c.playerLevel[10] += 4;
			c.sendFrame126("" + c.playerLevel[10] + "", 4032);
			c.deleteItem(155, c.GetItemSlot(155), 1);
			c.addItem(229, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 153: // fish pot (2)
			c.fishPot = true;
			c.fishPotTimer = 120;
			c.playerLevel[10] = c.getLevelForXP(c.playerXP[10]);
			c.playerLevel[10] += 4;
			c.sendFrame126("" + c.playerLevel[10] + "", 4032);
			c.deleteItem(153, c.GetItemSlot(153), 1);
			c.addItem(155, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 151: // fish pot (3)
			c.fishPot = true;
			c.fishPotTimer = 120;
			c.playerLevel[10] = c.getLevelForXP(c.playerXP[16]);
			c.playerLevel[10] += 4;
			c.sendFrame126("" + c.playerLevel[10] + "", 4032);
			c.deleteItem(151, c.GetItemSlot(151), 1);
			c.addItem(153, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 2438: // fish pot (4)
			c.fishPot = true;
			c.fishPotTimer = 120;
			c.playerLevel[10] = c.getLevelForXP(c.playerXP[10]);
			c.playerLevel[10] += 4;
			c.sendFrame126("" + c.playerLevel[10] + "", 4032);
			c.deleteItem(2438, c.GetItemSlot(2438), 1);
			c.addItem(151, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 3038: // agil pot (1)
			c.agilPot = true;
			c.agilPotTimer = 90;
			c.playerLevel[16] = c.getLevelForXP(c.playerXP[16]);
			c.playerLevel[16] += 4;
			c.sendFrame126("" + c.playerLevel[16] + "", 4018);
			c.deleteItem(3038, c.GetItemSlot(3038), 1);
			c.addItem(229, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 2446: // Antipoison(4)
			c.sendMessage("You drink a dose of the antipoison.");
			c.deleteItem(2446, c.GetItemSlot(2446), 1);
			c.addItem(175, 1);
			c.startAnimation(0x33D);
			c.PoisonDelay = 9999999;
			break;
		case 175: // Antipoison(3)
			c.sendMessage("You drink a dose of the antipoison.");
			c.deleteItem(175, c.GetItemSlot(175), 1);
			c.addItem(177, 1);
			c.PoisonDelay = 9999999;
			break;
		case 177: // Antipoison(2)
			c.Poisoned = false;
			c.sendMessage("You drink a dose of the antipoison.");
			c.deleteItem(177, c.GetItemSlot(177), 1);
			c.addItem(179, 1);
			c.startAnimation(0x33D);
			c.PoisonDelay = 9999999;
			break;
		case 179: // Antipoison(1)
			c.Poisoned = false;
			c.sendMessage("You drink the last dose of the super anti-poison.");
			c.deleteItem(179, c.GetItemSlot(179), 1);
			c.addItem(229, 1);
			c.startAnimation(0x33D);
			c.PoisonDelay = 9999999;
			break;
		case 2448: // superAntipoison(4)
			c.Poisoned = false;
			c.sendMessage("You drink a dose of the super anti-poison.");
			c.deleteItem(2448, c.GetItemSlot(2448), 1);
			c.addItem(181, 1);
			c.startAnimation(0x33D);
			break;
		case 181: // superAntipoison(3)
			c.Poisoned = false;
			c.PoisonDelay = 100;
			c.sendMessage("You drink a dose of the super anti-poison.");
			c.deleteItem(181, c.GetItemSlot(181), 1);
			c.addItem(183, 1);
			c.startAnimation(0x33D);
			break;
		case 183: // superAntipoison(2)
			c.Poisoned = false;
			c.sendMessage("You drink a dose of the super anti-poison.");
			c.deleteItem(183, c.GetItemSlot(183), 1);
			c.addItem(184, 1);
			c.startAnimation(0x33D);
			break;
		case 185: // superAntipoison(1)
			c.Poisoned = false;
			c.sendMessage("You drink the last dose of the super anti-poison.");
			c.deleteItem(185, c.GetItemSlot(185), 1);
			c.addItem(229, 1);
			c.startAnimation(0x33D);
			break;
		case 5943: // extra-strongAntidote(4)
			c.Poisoned = false;
			c.PoisonDelay = 200;
			c.sendMessage("You drink a dose of the extra strong antidote");
			c.deleteItem(5943, c.GetItemSlot(5943), 1);
			c.addItem(5945, 1);
			c.startAnimation(0x33D);
			break;
		case 5945: // extra-strongAntidote(3)
			c.Poisoned = false;
			c.PoisonDelay = 200;
			c.sendMessage("You drink a dose of the extra strong antidote");
			c.deleteItem(5945, c.GetItemSlot(5945), 1);
			c.addItem(5945, 1);
			c.startAnimation(0x33D);
			break;
		case 5947: // extra-strongAntidote(2)
			c.Poisoned = false;
			c.PoisonDelay = 200;
			c.sendMessage("You drink a dose of the extra strong antidote");
			c.deleteItem(5947, c.GetItemSlot(5947), 1);
			c.addItem(5949, 1);
			c.startAnimation(0x33D);
			break;
		case 5949: // extra-strongAntidote(1)
			c.Poisoned = false;
			c.PoisonDelay = 200;
			c.sendMessage("You drink the last dose of the extra strong antidote");
			c.deleteItem(5949, c.GetItemSlot(5949), 1);
			c.addItem(229, 1);
			c.startAnimation(0x33D);
			break;
		case 5952: // super-strongAntidote(4)
			c.Poisoned = false;
			c.sendMessage("You drink a dose of the super strong antidote");
			c.deleteItem(5952, c.GetItemSlot(5952), 1);
			c.addItem(5954, 1);
			c.startAnimation(0x33D);
			break;
		case 5954: // super-strongAntidote(3)
			c.Poisoned = false;
			c.PoisonDelay = 350;
			c.sendMessage("You drink a dose of the super strong antidote");
			c.deleteItem(5954, c.GetItemSlot(5954), 1);
			c.addItem(5956, 1);
			c.startAnimation(0x33D);
			break;
		case 5956: // super-strongAntidote(2)
			c.Poisoned = false;
			c.PoisonDelay = 350;
			c.sendMessage("You drink a dose of the super strong antidote");
			c.deleteItem(5956, c.GetItemSlot(5956), 1);
			c.addItem(5958, 1);
			c.startAnimation(0x33D);
			break;
		case 5958: // super-strongAntidote(1)
			c.Poisoned = false;
			c.PoisonDelay = 350;
			c.sendMessage("You drink the last dose of the super strong antidote");
			c.deleteItem(5958, c.GetItemSlot(5958), 1);
			c.addItem(229, 1);
			c.startAnimation(0x33D);
			break;
		case 131: // restore pot
			c.restorePot();
			c.sendMessage("You drink the last dose of the restore potion");
			c.deleteItem(131, c.GetItemSlot(131), 1);
			c.addItem(229, 1);
			c.startAnimation(0x33D);
			break;
		case 129: // restore pot
			c.restorePot();
			c.sendMessage("You drink a dose of the restore potion");
			c.deleteItem(129, c.GetItemSlot(129), 1);
			c.addItem(131, 1);
			c.startAnimation(0x33D);
			break;
		case 127: // restore pot
			c.restorePot();
			c.sendMessage("You drink a dose of the restore potion");
			c.deleteItem(127, c.GetItemSlot(127), 1);
			c.addItem(129, 1);
			c.startAnimation(0x33D);
			break;
		case 3014:
			c.playerEnergy += 10;
			c.WriteEnergy();
			c.deleteItem(3014, c.GetItemSlot(3014), 1);
			c.addItem(229, 1);
			c.startAnimation(0x33D);
			break;
		case 3012:
			c.playerEnergy += 10;
			c.WriteEnergy();
			c.deleteItem(3012, c.GetItemSlot(3012), 1);
			c.addItem(3014, 1);
			c.startAnimation(0x33D);
			break;
		case 3010:
			c.playerEnergy += 10;
			c.WriteEnergy();
			c.deleteItem(3010, c.GetItemSlot(3010), 1);
			c.addItem(3012, 1);
			c.startAnimation(0x33D);
			break;
		case 3008:
			c.playerEnergy += 10;
			c.WriteEnergy();
			c.deleteItem(3008, c.GetItemSlot(3008), 1);
			c.addItem(3010, 1);
			c.startAnimation(0x33D);
			break;
		case 3022:
			c.playerEnergy += 20;
			c.WriteEnergy();
			c.deleteItem(3022, c.GetItemSlot(3022), 1);
			c.addItem(229, 1);
			c.startAnimation(0x33D);
			break;
		case 3020:
			c.playerEnergy += 20;
			c.WriteEnergy();
			c.deleteItem(3020, c.GetItemSlot(3020), 1);
			c.addItem(3022, 1);
			c.startAnimation(0x33D);
			break;
		case 3018:
			c.playerEnergy += 20;
			c.WriteEnergy();
			c.deleteItem(3018, c.GetItemSlot(3018), 1);
			c.addItem(3020, 1);
			c.startAnimation(0x33D);
			break;
		case 3016:
			c.playerEnergy += 20;
			c.WriteEnergy();
			c.deleteItem(3016, c.GetItemSlot(3016), 1);
			c.addItem(3018, 1);
			c.startAnimation(0x33D);
			break;
		case 161: // super str (1)
			c.strPot = true;
			c.strPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[2]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba * 2;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
			c.playerLevel[2] += c.abc2;
			c.sendFrame126("" + c.playerLevel[2] + "", 4006);
			c.ReplaceItems(229, 161, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 159:
			c.strPot = true;
			c.strPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[2]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba * 2;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
			c.playerLevel[2] += c.abc2;
			c.sendFrame126("" + c.playerLevel[2] + "", 4006);
			c.ReplaceItems(161, 159, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 157:
			c.strPot = true;
			c.strPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[2]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba * 2;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
			c.playerLevel[2] += c.abc2;
			c.sendFrame126("" + c.playerLevel[2] + "", 4006);
			c.ReplaceItems(159, 157, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 2440:
			c.strPot = true;
			c.strPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[2]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba * 2;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
			c.playerLevel[2] += c.abc2;
			c.sendFrame126("" + c.playerLevel[2] + "", 4006);
			c.ReplaceItems(157, 2440, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 113:
			c.strPot = true;
			c.strPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[2]);
			c.cba = c.abc / 10;
			c.aaa = c.cba / 2;
			c.abc2 = c.aaa + c.cba;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
			c.playerLevel[2] += c.abc2;
			c.sendFrame126("" + c.playerLevel[2] + "", 4006);
			c.ReplaceItems(115, 113, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 115:
			c.strPot = true;
			c.strPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[2]);
			c.cba = c.abc / 10;
			c.aaa = c.cba / 2;
			c.abc2 = c.aaa + c.cba;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
			c.playerLevel[2] += c.abc2;
			c.sendFrame126("" + c.playerLevel[2] + "", 4006);
			c.ReplaceItems(117, 115, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 117:
			c.strPot = true;
			c.strPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[2]);
			c.cba = c.abc / 10;
			c.aaa = c.cba / 2;
			c.abc2 = c.aaa + c.cba;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
			c.playerLevel[2] += c.abc2;
			c.sendFrame126("" + c.playerLevel[2] + "", 4006);
			c.ReplaceItems(119, 117, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 119:
			c.strPot = true;
			c.strPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[2]);
			c.cba = c.abc / 10;
			c.aaa = c.cba / 2;
			c.abc2 = c.aaa + c.cba;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[2] = c.getLevelForXP(c.playerXP[2]);
			c.playerLevel[2] += c.abc2;
			c.sendFrame126("" + c.playerLevel[2] + "", 4006);
			c.ReplaceItems(229, 119, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 135: // defence pot (2)
			c.defPot = true;
			c.defPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[1]);
			c.cba = c.abc / 10;
			c.aaa = c.cba / 2;
			c.abc2 = c.aaa + c.cba;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
			c.playerLevel[1] += c.abc2;
			c.sendFrame126("" + c.playerLevel[1] + "", 4008);
			c.ReplaceItems(137, 135, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 133: // defence pot (3)
			c.defPot = true;
			c.defPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[1]);
			c.cba = c.abc / 10;
			c.aaa = c.cba / 2;
			c.abc2 = c.aaa + c.cba;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
			c.playerLevel[1] += c.abc2;
			c.sendFrame126("" + c.playerLevel[1] + "", 4008);
			c.ReplaceItems(135, 133, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 2442: // super defence pot (4)
			c.defPot = true;
			c.defPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[1]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba * 2;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
			c.playerLevel[1] += c.abc2;
			c.sendFrame126("" + c.playerLevel[1] + "", 4008);
			c.ReplaceItems(163, 2442, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 163: // super defence pot (3)
			c.defPot = true;
			c.defPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[1]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba * 2;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
			c.playerLevel[1] += c.abc2;
			c.sendFrame126("" + c.playerLevel[1] + "", 4008);
			c.ReplaceItems(165, 163, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 165: // super defence pot (2)
			c.defPot = true;
			c.defPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[1]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba * 2;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
			c.playerLevel[1] += c.abc2;
			c.sendFrame126("" + c.playerLevel[1] + "", 4008);
			c.ReplaceItems(167, 165, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 167: // super defence pot (1)
			c.defPot = true;
			c.defPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[1]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba * 2;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
			c.playerLevel[1] += c.abc2;
			c.sendFrame126("" + c.playerLevel[1] + "", 4008);
			c.ReplaceItems(229, 167, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 2432: // defence pot (4)
			c.defPot = true;
			c.defPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[1]);
			c.cba = c.abc / 10;
			c.aaa = c.cba / 2;
			c.abc2 = c.aaa + c.cba;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[1] = c.getLevelForXP(c.playerXP[1]);
			c.playerLevel[1] += c.abc2;
			c.sendFrame126("" + c.playerLevel[1] + "", 4008);
			c.ReplaceItems(133, 2432, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 3046: // mage pot (1)
			c.magePot = true;
			c.magePotTimer = 90;
			c.playerLevel[6] = c.getLevelForXP(c.playerXP[6]);
			c.playerLevel[6] += 4;
			c.sendFrame126("" + c.playerLevel[6] + "", 4014);
			c.ReplaceItems(229, 3046, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 3044: // mage pot (2)
			c.magePot = true;
			c.magePotTimer = 90;
			c.playerLevel[6] = c.getLevelForXP(c.playerXP[6]);
			c.playerLevel[6] += 4;
			c.sendFrame126("" + c.playerLevel[6] + "", 4014);
			c.ReplaceItems(3046, 3044, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 3042: // mage pot (3)
			c.magePot = true;
			c.magePotTimer = 90;
			c.playerLevel[6] = c.getLevelForXP(c.playerXP[6]);
			c.playerLevel[6] += 4;
			c.sendFrame126("" + c.playerLevel[6] + "", 4014);
			c.ReplaceItems(3044, 3042, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 3040: // mage pot (4)
			c.magePot = true;
			c.magePotTimer = 90;
			c.playerLevel[6] = c.getLevelForXP(c.playerXP[6]);
			c.playerLevel[6] += 4;
			c.sendFrame126("" + c.playerLevel[6] + "", 4014);
			c.ReplaceItems(3040, 3042, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 173: // range pot (1)
			c.rangePot = true;
			c.rangePotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[4]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba + 3;
			c.playerLevel[4] = c.getLevelForXP(c.playerXP[4]);
			c.playerLevel[4] += c.abc2;
			c.sendFrame126("" + c.playerLevel[6] + "", 4010);
			c.ReplaceItems(229, 173, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 171: // range pot (2)
			c.rangePot = true;
			c.rangePotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[4]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba + 3;
			c.playerLevel[4] = c.getLevelForXP(c.playerXP[4]);
			c.playerLevel[4] += c.abc2;
			c.sendFrame126("" + c.playerLevel[4] + "", 4010);
			c.ReplaceItems(173, 171, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 169: // range pot (3)
			c.rangePot = true;
			c.rangePotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[4]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba + 3;
			c.playerLevel[4] = c.getLevelForXP(c.playerXP[4]);
			c.playerLevel[4] += c.abc2;
			c.sendFrame126("" + c.playerLevel[4] + "", 4010);
			c.ReplaceItems(171, 169, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 2444: // range pot (4)
			c.rangePot = true;
			c.rangePotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[4]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba + 3;
			c.playerLevel[4] = c.getLevelForXP(c.playerXP[4]);
			c.playerLevel[4] += c.abc2;
			c.sendFrame126("" + c.playerLevel[4] + "", 4010);
			c.ReplaceItems(169, 2444, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 149: // super attack pot (1)
			c.attPot = true;
			c.attPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[0]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba * 2;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
			c.playerLevel[0] += c.abc2;
			c.sendFrame126("" + c.playerLevel[0] + "", 4004);
			c.ReplaceItems(229, 149, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 147: // super attack pot (2)
			c.attPot = true;
			c.attPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[0]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba * 2;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
			c.playerLevel[0] += c.abc2;
			c.sendFrame126("" + c.playerLevel[0] + "", 4004);
			c.ReplaceItems(149, 147, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 145: // super attack pot (3)
			c.attPot = true;
			c.attPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[0]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba * 2;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
			c.playerLevel[0] += c.abc2;
			c.sendFrame126("" + c.playerLevel[0] + "", 4004);
			c.ReplaceItems(147, 145, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 2436: // super attack pot (4)
			c.attPot = true;
			c.attPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[0]);
			c.cba = c.abc / 10;
			c.abc2 = c.cba * 2;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
			c.playerLevel[0] += c.abc2;
			c.sendFrame126("" + c.playerLevel[0] + "", 4004);
			c.ReplaceItems(145, 2436, 1, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 125: // attack pot (1)
			c.attPot = true;
			c.attPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[0]);
			c.cba = c.abc / 10;
			c.aaa = c.cba / 2;
			c.abc2 = c.aaa + c.cba;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
			c.playerLevel[0] += c.abc2;
			c.sendFrame126("" + c.playerLevel[0] + "", 4004);
			c.deleteItem(125, c.GetItemSlot(125), 1);
			c.addItem(229, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 123: // attack pot (2)
			c.attPot = true;
			c.attPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[0]);
			c.cba = c.abc / 10;
			c.aaa = c.cba / 2;
			c.abc2 = c.aaa + c.cba;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
			c.playerLevel[0] += c.abc2;
			c.sendFrame126("" + c.playerLevel[0] + "", 4004);
			c.deleteItem(123, c.GetItemSlot(123), 1);
			c.addItem(125, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 121: // attack pot (3)
			c.attPot = true;
			c.attPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[0]);
			c.cba = c.abc / 10;
			c.aaa = c.cba / 2;
			c.abc2 = c.aaa + c.cba;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
			c.playerLevel[0] += c.abc2;
			c.sendFrame126("" + c.playerLevel[0] + "", 4004);
			c.deleteItem(121, c.GetItemSlot(121), 1);
			c.addItem(123, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 2428: // attack pot (4)
			c.strPot = true;
			c.attPotTimer = 90;
			c.abc = c.getLevelForXP(c.playerXP[0]);
			c.cba = c.abc / 10;
			c.aaa = c.cba / 2;
			c.abc2 = c.aaa + c.cba;
			if (c.abc2 <= 1) {
				c.abc2 = 2;
			}
			c.playerLevel[0] = c.getLevelForXP(c.playerXP[0]);
			c.playerLevel[0] += c.abc2;
			c.sendFrame126("" + c.playerLevel[0] + "", 4004);
			c.deleteItem(2428, c.GetItemSlot(2428), 1);
			c.addItem(121, 1);
			c.startAnimation(0x33D);
			c.updateRequired = true;
			c.appearanceUpdateRequired = true;
			c.GoOn = false;
			break;
		case 1917: // Beer
			c.sendMessage("You drink the beer, and feel a bit c.drunk!");
			c.drunkTimer += 80;
			c.deleteItem(1917, c.getItemSlot(1917), 1);
			break;
		case 3803: // Strong Beer
			c.sendMessage("You drink the beer, and feel pretty c.drunk!");
			c.drunkTimer += 160;
			c.deleteItem(3803, c.getItemSlot(3803), 1);
			break;
		case 3801: // Keg Of Beer
			c.sendMessage("You drink the beer, and feel really c.drunk!");
			c.drunkTimer += 320;
			c.startAnimation(1329);
			c.deleteItem(3801, c.getItemSlot(3801), 1);
			break;
		default:
			break;
		}
		return true;
	}
}
